using System;
using Coderoom.ScrumPlanner.Data.Contracts;

namespace Coderoom.ScrumPlanner.Data.Repositories
{
	public abstract class Repository : IRepository, IDisposable
	{
		#region IDisposable implementation

		public void Dispose()
		{
			Dispose(true);
			GC.SuppressFinalize(this);
		}

		~Repository()
		{
			Dispose(false);
		}

		protected virtual void Dispose(bool disposing) {}

		#endregion
	}
}